package com.nttuan.model.dao.service;

import com.nttuan.model.entity.Category;

import java.util.List;

/**
 * Created by NT Tuan on 10/20/2014.
 */
public interface CategoryService {
    public Category createOrUpDate(Category category);
    public int isExit(String categoryName);
    public List<Category> categorys(boolean isActive);
    public Category category(String categoryName, boolean isActive);
    public Category category(int categoryId, boolean isActive);
    public Category category(int categoryId);
    public boolean create(Category category);
    public boolean remove(int categoryId);
    public boolean update(Category category);
    public boolean active(int categoryId, boolean isActive);
}
